package com.ruoyi.pack.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * API位置数据对象
 * 对应JSON中的apiDate节点
 *
 * @author ruoyi
 * @date 2024-01-01
 */
public class ApiLocationData {
    
    /** 地址信息 */
    private String address;
    
    /** 电池电量百分比 */
    @JsonProperty("batteryLevel")
    private Double batteryLevel;
    
    /** 电池电压 */
    @JsonProperty("batteryVoltage")
    private Double batteryVoltage;
    
    /** 信号质量 */
    private Integer csq;
    
    /** 设备编码（定位器编码） */
    @JsonProperty("deviceCode")
    private String deviceCode;
    
    /** 设备类型 */
    @JsonProperty("deviceType")
    private String deviceType;
    
    /** 纬度 */
    private String latitude;
    
    /** 经度 */
    private String longitude;
    
    /** 信号源 */
    @JsonProperty("signalSource")
    private Integer signalSource;
    
    /** 时间戳 */
    private String time;

    // Getters and Setters
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Double getBatteryLevel() {
        return batteryLevel;
    }

    public void setBatteryLevel(Double batteryLevel) {
        this.batteryLevel = batteryLevel;
    }

    public Double getBatteryVoltage() {
        return batteryVoltage;
    }

    public void setBatteryVoltage(Double batteryVoltage) {
        this.batteryVoltage = batteryVoltage;
    }

    public Integer getCsq() {
        return csq;
    }

    public void setCsq(Integer csq) {
        this.csq = csq;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public Integer getSignalSource() {
        return signalSource;
    }

    public void setSignalSource(Integer signalSource) {
        this.signalSource = signalSource;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "ApiLocationData{" +
                "address='" + address + '\'' +
                ", batteryLevel=" + batteryLevel +
                ", batteryVoltage=" + batteryVoltage +
                ", csq=" + csq +
                ", deviceCode='" + deviceCode + '\'' +
                ", deviceType='" + deviceType + '\'' +
                ", latitude='" + latitude + '\'' +
                ", longitude='" + longitude + '\'' +
                ", signalSource=" + signalSource +
                ", time='" + time + '\'' +
                '}';
    }
}
